package com.cy.sca.service;

import com.cy.sca.dao.IOrderMapper;
import com.cy.sca.pojo.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService implements IOrderService {

    @Autowired
    private IOrderMapper iOrderMapper;

    @Override
    public boolean addOrder(Order order) {
        return iOrderMapper.addOrder(order);
    }

    @Override
    public Order queryOrderBySerial(String order_serial) {
        return iOrderMapper.queryOrderBySerial(order_serial);
    }

    @Override
    public List<Order> listOrder() {
        return iOrderMapper.listOrder();
    }
}
